// ==UserScript==
// @name         导出并删除
// @namespace 	 test
// @version      1.0.0
// @description  测试
// @author       Zoro.Zhu
// @include      https://www.dianxiaomi.com/product/offline.htm?productState=0&state=0
// @exclude      *://*.eggvod.cn/*
// @connect      *
// @require      https://code.jquery.com/jquery-2.1.4.min.js
// @grant        window.close
// ==/UserScript==

(function() {

    task();

})();

function task() {
    var int=self.setInterval(function () {
        btnSearchIt(true);
        showExportModal();
        $('#exportPageNo').val('1-1');
        batchExportProductAll();
        setTimeout(function(){
            $("a:contains('立即下载文件')")[0].click();
            document.getElementById('batchExportCosProductModal').style.display="none";
            $('#selectAll').click();
            $('a[sxz=batchDelete]').click();
            $("button:contains('确定')")[32].click();
            document.getElementById('batchOperateRetModal').style.display="none";
        },10000);
    },20000);
}

